class Game
  attr_accessor :objects
  attr_accessor :paused
  
  def initialize
    @objects = []
    @paused = false
  end
  
  def update
    unless paused?
      @objects.each do |obj|
        obj.update(self) if obj.respond_to?(:update)
      end
    end
  end
  
  def paused?
    @paused
  end
end